var  http = require("http"),
      url=require('url'),
      qs=require('querystring');

function requestListener(req,res){
	 res.writeHead(200, {'Content-Type': 'text/plain'});
	var _data="";
	var post='';
    req.on('data', function(chunk){_data += chunk;});
    req.on('end', function() {
    	post= qs.parse(_data); 
    	dealWithPost(req,res,post);
     });
}
var http = require('http');
http.createServer(requestListener).listen(1337, '127.0.0.1');

function dealWithPost(req,res,data){
	if(data['content'].length){
		  data['content']=urldecode(data['content']);
     }
	var fn=data['fn']||null;
}